<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header" />
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}" />
    <link th:replace="common/tip" />
    <script language="javascript" type="text/javascript" th:src="@{/js/My97DatePicker/WdatePicker.js}"></script>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <h3 class="header smaller lighter blue"><em class="icon-list"></em>任务列表</h3>
            <form class="form-horizontal" th:object="${footMissionSearchForm}" method="post" th:action="@{/foot/footMission/search}" name="form" th:if="${session.footUser.qx.text == '管理员'}">
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span12">
                        <div class="row-fluid">
                            <a class="btn" type="button" th:href="@{/index}"><em class="icon-arrow-left"></em>返回首页</a>
                        </div>
                        <table style="width:100%" border="0">
                            <tbody>
                            <tr>
                                <th style="width: 55px;">关键字:</th>
                                <td style="width: auto;"><input th:field="*{userName}" type="text" name="userName" class="input_fix" placeholder="关键字" /></td>
                                <th style="width: 80px;">是否完成:</th>
                                <td style="width: auto;"> <label class="span6 Light"> <input th:field="*{complete}" type="radio" name="complete" value="1" /> <span class="lbl">是</span> </label> <label class="span6 Light"> <input th:field="*{complete}" type="radio" name="complete" value="0" /> <span class="lbl">否</span> </label> </td>
                                <th style="width: 80px;">时间:</th>
                                <td style="width: auto;"> <input th:field="*{createTime}" type="text" name="createTime" id="createTime" class="input_fix2" placeholder="时间" /> <img onclick="WdatePicker({el:'createTime',dateFmt:'yyyy-MM-dd'})" style="width:16px;height:22px"  src="" alt="" th:src="@{/js/My97DatePicker/skin/datePicker.gif}" /> </td>
                                <td style="width:120px;"> <button class="btn btn-info" style="float: right;" type="button" onclick="pagechange(1);"><em class="icon-search"></em>查询</button> </td>
                            </tr>
                            </tbody>
                        </table>
                        <table id="table_bug_report" class="table table-hover">
                            <thead>
                            <tr>
                                <th>用户名</th>
                                <th>任务名称</th>
                                <th>任务数量</th>
                                <th>任务描述</th>
                                <th>是否完成</th>
                                <th class="hidden-480">时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="t:${footMissionList}">
                                <td><a th:href="@{/foot/footMission/view(id=${t.id})}" th:text="${t.userName}">123</a></td>
                                <td><a th:href="@{/foot/footMission/view(id=${t.id})}" th:text="${t.missionName}">123</a></td>
                                <td><a th:href="@{/foot/footMission/view(id=${t.id})}" th:text="${t.missionNum}">123</a></td>
                                <td><a th:href="@{/foot/footMission/view(id=${t.id})}" th:text="${t.missionDetail}">123</a></td>
                                <td><a th:href="@{/foot/footMission/view(id=${t.id})}" th:text="${t.complete ? '完成' : '未完成'}">123</a></td>
                                <td class="hidden-480"><a th:href="@{/foot/footMission/view(id=${t.id})}" th:text="${#dates.format(t.createTime,'yyyy-MM-dd HH:mm')}">123</a></td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td colspan="6">
                                    <div class="row-fluid" th:include="common/page :: page"></div> </td>
                            </tr>
                            </tfoot>
                        </table>
                        <!--/#page-content-->
                    </div>
                    <!--/#page-content-->
                </div>
            </form>
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/jsList"></div>
</body>
</html>